package org.cn.cf.service;

import org.cn.cf.platform.IAuthentication;

import net.jxta.service.Service;

/**
 * 服务
 * */
public interface ICFService {

	/**
	 * 如果是属于Group则由Group中的IAuthentication进行验证
	 * 如果属于Peer则由个人权限进行认证
	 * */
	public enum Type{
		group,
		peer
	}
	public void setName(String name);
	public String getName();
	
	public void setService(Service service);
	public Service getService();
	
	public void startRun();
	public void stopRun();

	public void setType(Type type);
	public Type getType();
	 
}
